#include "../tools/tools.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char** argv) {
  if (argc < 2) {
	  fprintf(stderr,"Usage: %s <input> [-o <output>]",argv[0]);
	  exit(2);
  }
  else {
	char* input_name = argv[1];
	char* output_name = NULL;
	long ret;
	if ((argc >= 3)&&(strcmp(argv[2],"-o") == 0)) {
		output_name = argv[3];
	}
	//ret = jstegd(input_name, output_name, 0);
	ret = f3d(input_name, output_name, 0);
	//ret = f4d(input_name, output_name, 0);
	return ret;
  }
  return 0;
}
